package com.baidu.springcloud.service;

import com.baidu.springcloud.bean.Payment;
import com.baidu.springcloud.common.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author ShiLei
 * @version v1.0
 * @date 2020-04-04 17:41
 */
@FeignClient(value = "nacos-payment-provider",fallback = PatmentFallbackService.class)
public interface PaymentService {

    @GetMapping("/payment/{id}")
    public CommonResult<Payment> payment(@PathVariable(value = "id") Long id);
}
